<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<link rel="stylesheet" href="${basePath}/static/plugins/datepicker/bootstrap-datetimepicker.css">
<link rel="stylesheet" href="${basePath}/static/plugins/datatables/dataTables.bootstrap.css">

<section class="content-header">
	<ol class="breadcrumb">
		<li><a href="${basePath }/daily/dailyView"><i
				class="fa fa-dashboard"></i> 积分管理</a></li>
		<li class="active">积分消费记录</li>
	</ol>
</section>
<div class="content">
	<div class="panel panel-info">
		<div class="panel-heading">积分消费记录</div>
		<div class="panel-body">
			<!-- 查询列表  start-->
			<form id="ruleSearchForm">
				<div class="row" role="form">
					<div class="form-group form-inline col-sm-3">
						<label for="userName">姓名:</label> <input type="text"
							class="form-control" name="userName" id="userName"
							style="width: 160px;" placeholder="用户姓名">
					</div>
					<div class="form-group form-inline col-sm-3">
						<label for="goodName">商品名:</label> <input type="text"
						class="form-control" name="goodName" id="goodName"
						style="width: 160px;" placeholder="商品名称">
					</div>
					<div class="form-group form-inline col-sm-3">
						<label for="consumeDate">消费日期:</label> <input type="text"
							class="form-control" name="consumeDate" id="consumeDate"
							style="width: 170px;" placeholder="yyyy-mm-dd">
					</div>
					<!--
				  	<div class="col-sm-1">
				  		<a class="more-ops ex-options">更多选项</a>
				  		<a class="more-ops cl-options" style="display:none;">收起选项</a>
				  	</div>
				  	 -->
					<div class="col-sm-2">
						<button type="button" class="btn btn-info" style="width: 120px;" id="ruleSearch">查 询</button>
					</div>
				</div>
				<div class="row" role="form" id="extendCondition"
					style="display: none;"></div>
			</form>
			<!-- 查询列表  end -->
			<br>
			<!-- 日志表格内容 start-->
			<table id="rule_grid" class="table table-bordered table-hover text-center">
				<thead>
					<tr>
						<th>序号</th>
						<th>姓名</th>
						<th>商品名</th>
						<th>积分</th>
						<th>消费日期</th>
                        <th>操作</th>
					</tr>
				</thead>
			</table>
			<!-- 日志表格内容 end -->
		</div>
	</div>
</div>

<!-- 积分规则新增用模态框 -->
<div class="modal fade" id="consume_detail_modal" tabindex="-1" role="dialog">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-body no-padding">
				<div class="box box-primary">
					<div class="box-header with-border">
						<h3 class="box-title">消费详情</h3>
					</div>

					<div class="box-body" id="consume_detail_body">
						<div class="row">
							<div class="col-sm-6">
								<label>姓名：</label>
								<input type="text" class="form-control" name="userName" readonly="readonly">
							</div>
							<div class="col-sm-6">
								<label>积分：</label>
								<input type="text" class="form-control" name="integral" readonly="readonly">
							</div>
						</div>
						<div class="row">
							<div class="col-sm-6">
								<label>消费商品：</label>
								<input type="text" class="form-control" name="goodName" readonly="readonly">
							</div>
							<div class="col-sm-6">
								<label>消费时间：</label>
								<input type="text" class="form-control" name="consumeDate" readonly="readonly">
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div>
	</div>
</div>


<script src="${basePath}/static/plugins/datepicker/bootstrap-datetimepicker.js"></script>
<script src="${basePath}/static/plugins/datepicker/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="${basePath}/static/plugins/datatables/jquery.dataTables.js"></script>
<script src="${basePath}/static/plugins/datatables/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="${basePath}/static/plugins/jquery.validate/jquery.validate.min.js"></script>

<script src="${basePath}/static/adminLTE/js/integral/consume.js"></script>

